package com.ruoyi.server.api.setting.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.server.api.setting.mapper.ImgSettingMapper;
import com.ruoyi.server.api.setting.domain.ImgSetting;
import com.ruoyi.server.api.setting.service.IImgSettingService;

/**
 * 商家设置营业时间Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class ImgSettingServiceImpl implements IImgSettingService 
{
    @Autowired
    private ImgSettingMapper imgSettingMapper;

    /**
     * 查询商家设置营业时间
     * 
     * @param id 商家设置营业时间主键
     * @return 商家设置营业时间
     */
    @Override
    public ImgSetting selectImgSettingById(Long id)
    {
        return imgSettingMapper.selectImgSettingById(id);
    }

    /**
     * 查询商家设置营业时间列表
     * 
     * @param imgSetting 商家设置营业时间
     * @return 商家设置营业时间
     */
    @Override
    public List<ImgSetting> selectImgSettingList(ImgSetting imgSetting)
    {
        return imgSettingMapper.selectImgSettingList(imgSetting);
    }

    /**
     * 新增商家设置营业时间
     * 
     * @param imgSetting 商家设置营业时间
     * @return 结果
     */
    @Override
    public int insertImgSetting(ImgSetting imgSetting)
    {
        return imgSettingMapper.insertImgSetting(imgSetting);
    }

    /**
     * 修改商家设置营业时间
     * 
     * @param imgSetting 商家设置营业时间
     * @return 结果
     */
    @Override
    public int updateImgSetting(ImgSetting imgSetting)
    {
        return imgSettingMapper.updateImgSetting(imgSetting);
    }

    /**
     * 批量删除商家设置营业时间
     * 
     * @param ids 需要删除的商家设置营业时间主键
     * @return 结果
     */
    @Override
    public int deleteImgSettingByIds(Long[] ids)
    {
        return imgSettingMapper.deleteImgSettingByIds(ids);
    }

    /**
     * 删除商家设置营业时间信息
     * 
     * @param id 商家设置营业时间主键
     * @return 结果
     */
    @Override
    public int deleteImgSettingById(Long id)
    {
        return imgSettingMapper.deleteImgSettingById(id);
    }

    @Override
    public ImgSetting queryTime() {
        return imgSettingMapper.queryTime();
    }

    @Override
    public int insertImgSettingTime(ImgSetting imgSetting) {
        return imgSettingMapper.insertImgSettingTime(imgSetting);
    }
}
